/*
============================================================================
 Name        : C$(Basename)App from $(Basename)App.cpp
 Author      : $(Author)
 Version     :
 Copyright   : $(Copyright)
 Description : Main application class
============================================================================
*/

// INCLUDE FILES
#include    "$(Basename)App.h"
#include    "$(Basename)Document.h"

// ================= MEMBER FUNCTIONS =======================

// ---------------------------------------------------------
// C$(Basename)App::AppDllUid()
// Returns application UID
// ---------------------------------------------------------
//
TUid C$(Basename)App::AppDllUid() const
	{
	return KUid$(Basename);
	}

// ---------------------------------------------------------
// C$(Basename)App::CreateDocumentL()
// Creates C$(Basename)Document object
// ---------------------------------------------------------
//
CApaDocument* C$(Basename)App::CreateDocumentL()
	{
	return C$(Basename)Document::NewL( *this );
	}

// ================= OTHER EXPORTED FUNCTIONS ==============
//
// ---------------------------------------------------------
// NewApplication() 
// Constructs C$(Basename)App
// Returns: created application object
// ---------------------------------------------------------
//
EXPORT_C CApaApplication* NewApplication()
	{
	return new C$(Basename)App;
	}

// ---------------------------------------------------------
// E32Dll(TDllReason) 
// Entry point function for EPOC Apps
// Returns: KErrNone: No error
// ---------------------------------------------------------
//
GLDEF_C TInt E32Dll( TDllReason )
	{
	return KErrNone;
	}
